package com.amumu.netctoss.dao;

import java.util.List;
import java.util.Map;

import com.amumu.netctoss.entity.Service;

public interface ServiceDao {
	List<Service> search(int page,int size,String username,
			String unixHost,String idcardNo,String status)throws Exception;
	Service findByHostAndUsername(String unixHost,String username)throws Exception;
	Service findById(int id)throws Exception;
	boolean hasHost(String host)throws Exception;
	void save(Service service)throws Exception;
	void update(Service service)throws Exception;
	void delete(int id)throws Exception;
	void setStatus(int id,String status)throws Exception;
	int getPageCount(int size,String username,
			String unixHost,String idcardNo,String status)throws Exception;
	Map<String,Object> getStatusOptions()throws Exception;
}
